package Pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public class Page {

    protected  WebDriver driver;

    public Page(WebDriver driver) {

        this.driver = driver;
    }

    protected void click(By locator) {
        driver.findElement(locator).click();
    }

    protected void typeText(By locator, String text) {
        driver.findElement(locator).sendKeys(text);
    }
}
